﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AppCompress.Model
{
    public class File
    {
        //名称
        public string Name { get; set; }

        //路径
        public string Path { get; set; }

        // 是否是文件夹 0-文件 1-文件夹
        public byte IsDirectory { get; set; }

        public List<File> FileInfos { get; set; }

        public File ParentFile { get; set; }

        public File()
        {
        }

        public File(string name, string path, byte isDirectory, File parentFile)
        {
            Name = name;
            Path = path;
            IsDirectory = isDirectory;
            ParentFile = parentFile;
        }
    }
}